package com.example.application1.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;

import com.example.application1.Adapter.newsTabViewPagerAdapter;
import com.example.application1.R;
import com.example.application1.settingActivity;
import com.example.application1.webViewActivity;
import com.google.android.material.tabs.TabLayout;

import java.util.ArrayList;
import java.util.List;


public class person_Fragments extends Fragment {

    private View view;

    private ImageView listerView;
    public static person_Fragments newInstance() {
        person_Fragments fragment = new person_Fragments();
        return fragment;
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view=inflater.inflate(R.layout.persion, container, false);
        return view;
    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        listerView=view.findViewById(R.id.listerView);
        listerView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getActivity(), settingActivity.class);
                getActivity().startActivity(intent);
            }
        });
    }
}
